package com.yunfeng.supercall.activity;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;

import com.yunfeng.supercall.R;

public class AboutUsActivity extends BaseActivity  {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_about_us);
	}

	public void share(View v) {
		Intent i = new Intent(Intent.ACTION_VIEW);
		i.setData(Uri.parse("http://www.chaoruan.net/m/login.asp?suid="
				+ getUser(getActivity()).getSuid()));
		startActivity(i);
	}

	/**
	 * 评分
	 * @param v
	 */
	public void score(View v) {
		try {
			Intent i = new Intent(Intent.ACTION_VIEW);
			// i.addCategory(Intent.CATEGORY_APP_MARKET);
			i.setData(Uri.parse("market://search?q=pname:" + getPackageName()));
			startActivity(i);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
